#include <iostream>
#include <limits>

int main() {
    std::cout << "UBSan demo start\n";
    int value = std::numeric_limits<int>::max();
    // 有符号溢出，UBSan 会报警
    int overflow = value + 1;
    std::cout << "Overflow result: " << overflow << '\n';
    return 0;
}
